package org.wdcode.back.action.logs;

import org.wdcode.back.action.BaseBackHelperAction;
import org.wdcode.back.po.Logs;
import org.wdcode.back.service.LogsService;

/**
 * 日志管理Action
 * @author WD
 * @since JDK6
 * @version 1.0 2009-09-23
 */
public final class LogsAction extends BaseBackHelperAction<LogsService, Logs> {
	// 序列化 ID
	private static final long	serialVersionUID	= 3217257433911128165L;

	/**
	 * 清空表
	 * @return
	 * @throws Exception
	 */
	public String trun() throws Exception {
		// 清空表
		getService().truncate();
		// 添加成功
		addMessage(SUCCESS);
		// 返回成功
		return LIST;
	}
}
